<!-- $Id: search_results.html 132 2008-09-20 00:38:22Z doug.hellmann $ -->
{% extends "base.html" %}
{% load docket_tags %}

{% block navigation %}
{% search_form %}
{% endblock %}

{% block pagetitle %} | Search {% endblock %}

{% block content %}
  <div class="case_list">
    <h2>Results</h2>

{% if messages %}
<ul>
{% for message in messages %}
    <li>{{message|safe}}</li>
{% endfor %}
</ul>
{% endif %}

{% if results %}
	<table>
	  <tr><th>Case Number</th><th>Name</th><th>Role</th></tr>
{% for participant in results %}
	  <tr>
		<td><a href="{% url docket.views.case participant.case.year,participant.case.num %}">{{participant.case.year}}/{{participant.case.num}}</a></td>
		<td>{{ participant.name }}</td>
		<td>{{ participant.role }}</td>
	  </tr>
{% endfor %}
	</table>
{% endif %}
  </div>
{% endblock %}

